Rails.application.routes.draw do

  namespace :eth do
    namespace :web3 do
      get 'watcher/index'
    end
  end

  namespace :eth do
    namespace :eth do
      namespace :web3 do
        get 'watcher/index'
      end
    end
  end

  get 'web_console/index'

  #ETH CONTRACT ROUTE
  namespace :eth do
   namespace :contracts do
     namespace :contribution do
       get 'index'
       post 'pause'
       post 'funding_start_time'
       post 'day_cycle'
       post 'user_buys'
       post 'total_contributed_eth'
       post 'kill'
       post 'finalize'
       post 'min_fund'
       post 'crawdsale_end_day'
       post 'is_finalize'
       post 'accept_ownership'
       post 'daily_totals'
       post 'owner'
       post 'change_owner'
       post 'eth_fund_deposit'
       post 'crawdsale_start_day'
       post 'today'
       post 'new_owner'
       post 'investor_deposit'
       post 'is_pause'
     end
   end
 end
  namespace :eth do
   namespace :contracts do
     namespace :owned do
       get 'index'
       post 'accept_ownership'
       post 'owner'
       post 'change_owner'
       post 'new_owner'
     end
   end
 end


  get 'contracts/index'

  get 'main/index'

  root :to => 'main#index'

  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
